<?php
if (isset($_POST['action'])){
		$action = $_POST['action'];
}
session_name("SID");
@session_start();
if (($action == "delclip")){
    session_unset();
    session_destroy();
}
if ($action != ""){
    $_SESSION['action']= $action;
}else {
    $action = $_SESSION['action'];
}

if(isset($action) && $action != "") {
    switch($action){
    case "cut":
        include("includes/actions/cut.php");
    break;
    case "copy":
        include("includes/actions/copy.php");
    break;
    case "paste":
        include("includes/actions/paste.php");
    break;
    case "delete":
        include("includes/actions/delete.php");
    break;
    case "edit":
        include("includes/actions/edit.php");
    break;
    case "chmod":
        include("includes/actions/chmod.php");
    break;
    case "newfile":
        include("includes/actions/newfile.php");
    break;
    case "newfolder":
        include("includes/actions/newfolder.php");
    break;
    case "zip":
        include("includes/actions/zip.php");
    break;
    }
    
}
?>